﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace CasaBella.Entities
{
    public class MODELO_MUEBLE:BaseEntity
    {
        public MODELO_MUEBLE()
        {
            this.P_MUEBLES = new List<P_MUEBLES>();
        }

        public int Id { get; set; }

        [Display(Name = "Descripcion")]
        [Required(ErrorMessage = "La Descripción es requerida")]
        public string Descripcion { get; set; }

        public Nullable<int> IdMarca { get; set; }
        public virtual ICollection<P_MUEBLES> P_MUEBLES { get; set; }
        public virtual MARCA_MUEBLE MARCA_MUEBLE { get; set; }

        public override string ToString()
        {
            return Descripcion + "-" + MARCA_MUEBLE.Descripcion;
        }
    }
}
